package com.example.docking.service;

import com.example.docking.dao.jindie.ResponseData;
import com.example.docking.dao.jindie.response.MaterialData;
import com.example.docking.dao.jingxin.request.MaterialDao;
import com.example.docking.dao.jingxin.request.MaterialtaskDao;
import com.example.docking.dao.jingxin.request.SubMaterialDao;
import com.example.docking.service.impl.DataServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MaterialService {
    public List<MaterialtaskDao> getMaterial(DataServiceImpl service, List<MaterialtaskDao> materials) throws Exception;

    public ResponseData insertMaterial(DataServiceImpl service, MaterialDao material) throws Exception;

    public List<SubMaterialDao> insertMaterialSub(DataServiceImpl service, List<SubMaterialDao> subMaterial) throws Exception;

    public MaterialData selectMaterial(String materialName);
}
